<template>
  <h3>我是About的内容</h3>
</template>

<script>
export default {
    name:'About',

    //通过路由规则，进入该组件时调用
    beforeRouteEnter (to, from, next) {
      console.log('beforeRouteEnter ',to,from);
      next()
    },
    //通过路由规则，离开该组件时调用
    beforeRouteLeave (to, from, next) {
      console.log('beforeRouteLeave ',to,from);
      next()
    }

}
</script>

<style>

</style>